/*
 *  random.h
 *  StringSearch
 *
 *  Created by Mohammad H. Afrasiabi on 09-11-28.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

/*!
    @header rand
    @abstract   Random buffer generator
    @discussion Generates random buffer with particular pattern for testing purposes 
*/


#pragma once

/*!
    @function
    @abstract   Generate random buffer
    @discussion Generate random buffer with particular pattern and particular step sizes for debuging purposes
    @param      buf The pointer to buffer
	@param      size Size of the buffer
	@param      pat String pattern
	@param      step Size of each step which pattern would be placed
*/
void randStr(char * buf, int size, const char * pat, int step);
